package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysCommonDataPropertyMapper;
import com.ruoyi.system.domain.SysCommonDataProperty;
import com.ruoyi.system.service.ISysCommonDataPropertyService;

/**
 * 公共基础字段Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-31
 */
@Service
public class SysCommonDataPropertyServiceImpl implements ISysCommonDataPropertyService 
{
    @Autowired
    private SysCommonDataPropertyMapper sysCommonDataPropertyMapper;

    /**
     * 查询公共基础字段
     * 
     * @param id 公共基础字段主键
     * @return 公共基础字段
     */
    @Override
    public SysCommonDataProperty selectSysCommonDataPropertyById(Long id)
    {
        return sysCommonDataPropertyMapper.selectSysCommonDataPropertyById(id);
    }

    /**
     * 查询公共基础字段列表
     * 
     * @param sysCommonDataProperty 公共基础字段
     * @return 公共基础字段
     */
    @Override
    public List<SysCommonDataProperty> selectSysCommonDataPropertyList(SysCommonDataProperty sysCommonDataProperty)
    {
        return sysCommonDataPropertyMapper.selectSysCommonDataPropertyList(sysCommonDataProperty);
    }

    /**
     * 新增公共基础字段
     * 
     * @param sysCommonDataProperty 公共基础字段
     * @return 结果
     */
    @Override
    public int insertSysCommonDataProperty(SysCommonDataProperty sysCommonDataProperty)
    {
        return sysCommonDataPropertyMapper.insertSysCommonDataProperty(sysCommonDataProperty);
    }

    /**
     * 修改公共基础字段
     * 
     * @param sysCommonDataProperty 公共基础字段
     * @return 结果
     */
    @Override
    public int updateSysCommonDataProperty(SysCommonDataProperty sysCommonDataProperty)
    {
        return sysCommonDataPropertyMapper.updateSysCommonDataProperty(sysCommonDataProperty);
    }

    /**
     * 批量删除公共基础字段
     * 
     * @param ids 需要删除的公共基础字段主键
     * @return 结果
     */
    @Override
    public int deleteSysCommonDataPropertyByIds(Long[] ids)
    {
        return sysCommonDataPropertyMapper.deleteSysCommonDataPropertyByIds(ids);
    }

    /**
     * 删除公共基础字段信息
     * 
     * @param id 公共基础字段主键
     * @return 结果
     */
    @Override
    public int deleteSysCommonDataPropertyById(Long id)
    {
        return sysCommonDataPropertyMapper.deleteSysCommonDataPropertyById(id);
    }
}
